package com.yuanchu.goods.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yuanchu.goods.entity.YoshopUploadFileEntity;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-01-23 13:36
 */
@Data
@ToString
public class GoodsSkuDto implements Serializable {
    private Integer id;
    @JsonProperty("goods_sku_id")
    private String goodsSkuId;
    @JsonProperty("goods_id")
    private Integer goodsId;
    @JsonProperty("image_id")
    private Integer imageId;
    @JsonProperty("goods_sku_no")
    private String goodsSkuNo;
    @JsonProperty("goods_price")
    private String goodsPrice;
    @JsonProperty("line_price")
    private String linePrice;
    @JsonProperty("stock_num")
    private Integer stockNum;
    @JsonProperty("goods_weight")
    private Double goodsWeight;
    @JsonProperty("goods_props")
    private List<Map<String, Object>> goodsProps;

    @JsonProperty("spec_value_ids")
    private List<Integer> specValueIds;
    @JsonProperty("store_id")
    private Integer storeId;

    @JsonProperty("create_time")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String createTime;

    @JsonProperty("update_time")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String updateTime;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private YoshopUploadFileEntity image;
    @JsonProperty("image_url")
    private String imageUrl;
    @JsonProperty("goods_image")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String goodsImage;

}
